﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PicConfig.aspx.cs" Inherits="Whir_System_Module_Config_PicConfig" %>

<%@ Register Src="~/UserControls/ezUpload.ascx" TagName="ezUpload" TagPrefix="uc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>图片设置</title>
    <link href="../../Skin/Default/Css/main.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        if (top.location == self.location) { 
            top.location='../../Default.aspx';
        } 
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#DADADA">
            <tr>
                <td height="26" colspan="2" align="left" class="form_title"><strong>图片设置</strong></td>
            </tr>
            <tr>
                <td height="30" align="center" class="form_tdText" style="width: 120px">自动水印: </td>
                <td class="form_td">
                    <asp:CheckBox ID="chkIsEnable" runat="server" /><font class="form_desc">[勾选之后，在上传图片的时候就会自动加上水印]</font></td>
            </tr>
            <tr>
                <td height="30" align="center" class="form_tdText" style="width: 120px">水印方式: </td>
                <td class="form_td">
                    <asp:RadioButton ID="rbShuiyinStyle1" runat="server" GroupName="fangshi" Text="文字"
                        OnCheckedChanged="rbShuiyinStyle1_CheckedChanged" AutoPostBack="True" />
                    <asp:RadioButton ID="rbShuiyinStyle2" runat="server" GroupName="fangshi" Text="图片"
                        OnCheckedChanged="rbShuiyinStyle2_CheckedChanged" AutoPostBack="True" /></td>
            </tr>
            <div id="divfont" runat="server">
                <tr>
                    <td height="30" align="center" class="form_tdText" style="width: 120px">水印文字: </td>
                    <td class="form_td">
                        <asp:TextBox ID="txtFontText" runat="server">http://www.whir.net</asp:TextBox></td>
                </tr>
                <tr>
                    <td height="30" align="center" class="form_tdText" style="width: 120px">字体: </td>
                    <td class="form_td">
                        <asp:DropDownList ID="ddlFontList" runat="server">
                        </asp:DropDownList></td>
                </tr>
                <tr style="display: none;">
                    <td height="30" align="center" class="form_tdText" style="width: 120px">文字颜色: </td>
                    <td class="form_td">
                        <asp:TextBox ID="txtFontColor" runat="server">#ff0000</asp:TextBox></td>
                </tr>
                <tr>
                    <td height="30" align="center" class="form_tdText" style="width: 120px">文字大小 </td>
                    <td class="form_td">
                        <asp:TextBox ID="txtFontSize" runat="server">12</asp:TextBox>px</td>
                </tr>
            </div>
            <div id="divPic" runat="server">
                <tr>
                    <td height="30" align="center" class="form_tdText" style="width: 120px">水印图片: </td>
                    <td class="form_td">
                        <uc1:ezUpload ID="EzUpload1" runat="server" />
                    </td>
                </tr>
                <tr style="display: none;">
                    <td height="30" align="center" class="form_tdText" style="width: 120px">被添加水印图片: </td>
                    <td class="form_td">宽<asp:TextBox ID="txtWidth" runat="server" Width="60px">120</asp:TextBox>px
                        * 高<asp:TextBox ID="txtHeight" runat="server" Width="60px">20</asp:TextBox>px</td>
                </tr>
                <tr style="display: none;">
                    <td height="30" align="center" class="form_tdText" style="width: 120px">透明度 </td>
                    <td class="form_td">
                        <asp:TextBox ID="txtTransparent" runat="server" Width="60px">50</asp:TextBox>
                        % </td>
                </tr>
                <tr>
                    <td height="30" align="center" class="form_tdText" style="width: 120px">水印位置: </td>
                    <td class="form_td">
                        <table width="256" height="207" border="0" background="../../image/CommonImage/flower.jpg">
                            <tr>
                                <td width="33%" align="center" style="vertical-align: middle;">
                                    <asp:RadioButton ID="RadioButton1" runat="server" GroupName="status" Checked="true" /><b>#1</b></td>
                                <td width="33%" align="center" style="vertical-align: middle;">
                                    <asp:RadioButton ID="RadioButton2" runat="server" GroupName="status" /><b>#2</b></td>
                                <td width="33%" align="center" style="vertical-align: middle;">
                                    <asp:RadioButton ID="RadioButton3" runat="server" GroupName="status" /><b>#3</b></td>
                            </tr>
                            <tr>
                                <td width="33%" align="center" style="vertical-align: middle;">
                                    <asp:RadioButton ID="RadioButton4" runat="server" GroupName="status" /><b>#4</b></td>
                                <td width="33%" align="center" style="vertical-align: middle;">
                                    <asp:RadioButton ID="RadioButton5" runat="server" GroupName="status" /><b>#5</b></td>
                                <td width="33%" align="center" style="vertical-align: middle;">
                                    <asp:RadioButton ID="RadioButton6" runat="server" GroupName="status" /><b>#6</b></td>
                            </tr>
                            <tr>
                                <td width="33%" align="center" style="vertical-align: middle;">
                                    <asp:RadioButton ID="RadioButton7" runat="server" GroupName="status" /><b>#7</b></td>
                                <td width="33%" align="center" style="vertical-align: middle;">
                                    <asp:RadioButton ID="RadioButton8" runat="server" GroupName="status" /><b>#8</b></td>
                                <td width="33%" align="center" style="vertical-align: middle;">
                                    <asp:RadioButton ID="RadioButton9" runat="server" GroupName="status" /><b>#9</b></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </div>
            <tr>
                <td height="30" align="center" class="form_tdText" style="width: 120px"></td>
                <td align="left" class="form_td">
                    <asp:Button ID="btnUpdate" runat="server" Text="修改" CssClass="btn_default" OnClick="btnUpdate_Click" />
                    <input id="Reset1" type="reset" value="重置" class="btn_default" />
                </td>
            </tr>
        </table>
    </form>
</body>
</html>

<script language="javascript" src="../../Js/common.js"></script>

<script type="text/javascript">initAutoFormStyle();</script>

